export default [{
  path: '',
  redirect: '/main/alert',
  name: 'Components',
  meta: {
    desc: '组件'
  },
  component: function (res) {
    require (['../components/Components.vue'],res);
  },
  children: [
    {
      path: 'alert',
      name: 'Alert',
      meta: {
        desc: '警示窗'
      },
      component: function (res) {
        require (['../components/comps/Alert.vue'],res);
      }
    },
    {
      path: 'badge',
      name: 'Badge',
      meta: {
        desc: '徽章标记'
      },
      component: function (res) {
        require (['../components/comps/Badge.vue'],res);
      }
    },
    {
      path: 'button',
      name: 'Button',
      meta: {
        desc: '按钮'
      },
      component: function (res) {
        require (['../components/comps/Button.vue'],res);
      }
    },
    {
      path: 'ajax',
      name: 'Ajax',
      meta: {
        desc: 'Ajax'
      },
      component: function (res) {
        require (['../components/comps/Ajax.vue'],res);
      }
    },
    {
      path: 'ztree',
      name: 'Ztree',
      meta: {
        desc: '树组件'
      },
      component: function (res) {
        require (['../components/comps/Ztree.vue'],res);
      }
    }
  ]
}]
